<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2021-12-15 13:17:42
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-04-20 14:26:51
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\sure-depart\\sure-depart.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->

<sf #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none">
  <ng-template sf-template="weight" let-me let-ui="ui" let-schema="schema">
    <div style="display: flex">
      <nz-input-number [(ngModel)]="data.weight" [nzMin]="1" [nzMax]="999999"  [nzPrecision]="2"  [nzStep]="0.01"></nz-input-number>
      <div class="left_btn">吨</div>
    </div>
  </ng-template>
  <ng-template sf-template="volume" let-me let-ui="ui" let-schema="schema">
    <div style="display: flex">
      <nz-input-number [(ngModel)]="data.volume" [nzMin]="1" [nzMax]="999999"  [nzStep]="0.01" [nzPrecision]="2"></nz-input-number>
      <div class="left_btn">方</div>
    </div>
  </ng-template>
</sf>

<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button type="submit" nzType="primary"  *ngIf="schema" (click)="save(sf.value)" [nzLoading]="http.loading">确认发车</button>
</div>
